/***************************************************************************
                                                                             
RRRRRRRRRRRRRRRRR                                              999999999     
R::::::::::::::::R                                           99:::::::::99   
R::::::RRRRRR:::::R                                        99:::::::::::::99 
RR:::::R     R:::::R                                      9::::::99999::::::9
  R::::R     R:::::R    eeeeeeeeeeee  xxxxxxx      xxxxxxx9:::::9     9:::::9
  R::::R     R:::::R  ee::::::::::::ee x:::::x    x:::::x 9:::::9     9:::::9
  R::::RRRRRR:::::R  e::::::eeeee:::::eex:::::x  x:::::x   9:::::99999::::::9
  R:::::::::::::RR  e::::::e     e:::::e x:::::xx:::::x     99::::::::::::::9
  R::::RRRRRR:::::R e:::::::eeeee::::::e  x::::::::::x        99999::::::::9 
  R::::R     R:::::Re:::::::::::::::::e    x::::::::x              9::::::9  
  R::::R     R:::::Re::::::eeeeeeeeeee     x::::::::x             9::::::9   
  R::::R     R:::::Re:::::::e             x::::::::::x           9::::::9    
RR:::::R     R:::::Re::::::::e           x:::::xx:::::x         9::::::9     
R::::::R     R:::::R e::::::::eeeeeeee  x:::::x  x:::::x       9::::::9      
R::::::R     R:::::R  ee:::::::::::::e x:::::x    x:::::x     9::::::9       
RRRRRRRR     RRRRRRR    eeeeeeeeeeeeeexxxxxxx      xxxxxxx   99999999        

 * 文件名：led.h
 * 版本号：V1.0
 * 作者: rex9
 * 生成日期：2021年1月8日
 * 最近修改：
 * 功能描诉：LED灯
 * 说明：
 *
 ***************************************************************************
 */
#ifndef INC_LED_H_
#define INC_LED_H_

#define L_ON()	HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_RESET)
#define L_OFF()	HAL_GPIO_WritePin(LED_GPIO_Port, LED_Pin, GPIO_PIN_SET)
#define	L_TOG()	HAL_GPIO_TogglePin(LED_GPIO_Port, LED_Pin)

typedef enum{
	LED_OFF=0,
	LED_ON,
	LED_TOG,
}LEDStatusStruct_t;

void LED_Control(LEDStatusStruct_t led);

#endif /* INC_LED_H_ */
